package org.utils;

import com.google.protobuf.GeneratedMessage;
import com.xiaoleilu.hutool.log.Log;
import com.xiaoleilu.hutool.log.LogFactory;

/**
 * @author : DengYing
 * @CreateDate : 2017年8月31日 下午6:10:56
 * @Description ：Please describe this document
 */
public class ProtoUnit {
	
	static Log log = LogFactory.get(ProtoUnit.class);
	
	public static byte[] toByte(GeneratedMessage msg){
		log.debug("Send Msg ---------> \n:{}",msg.toString());
		return msg.toByteArray();
	}
}
